﻿using com.iot.core.annotation;
using com.iot.core.data;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;

namespace com.iot.ht.Controllers.htpage.data
{
    [Schema(Name = "功能页面Dto", Description ="")]
    public class HtPageDto : BaseDto
    {





        [Comment("页面代码")]
        [Schema(Name = "页面代码", Description = "网站Url")]
        [MaxLength(50)]
        public string Code { get; set; } = "";


        [Comment("页面名称")]
        [Schema(Name = "页面名称", Description = "")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50)]
        public string Name { get; set; } = "";


        [Comment("备注")]
        [Schema(Name = "备注", Description = "")]
        public string Memo { get; set; } = "";


        [Comment("图标")]
        [Schema(Name = "图标", Description = "")]
        public string Imgurl { get; set; } = "";


        [Comment("类型")]
        [Schema(Name = "类型", Description = "平台、网站、小程序、终端")]
        [MaxLength(10)]
        public string Lx { get; set; } = "";


        [Comment("参数1")]
        [Schema(Name = "参数1", Description = "")]
        [MaxLength(50)]
        public string P1 { get; set; } = "";


        [Comment("参数2")]
        [Schema(Name = "参数2", Description = "")]
        [MaxLength(50)]
        public string P2 { get; set; } = "";


        [Comment("参数3")]
        [Schema(Name = "参数3", Description = "")]
        [MaxLength(50)]
        public string P3 { get; set; } = "";


        [Comment("参数4")]
        [Schema(Name = "参数4", Description = "")]
        [MaxLength(50)]
        public string P4 { get; set; } = "";


      


        [Comment("创建日期")]
        [Schema(Name = "创建日期", Description = "")]
        public DateTime CrtDt { get; set; }


        [Comment("创建人")]
        [Schema(Name = "创建人", Description = "")]
        public string CrtUname { get; set; } = "";


        [Comment("修改日期")]
        [Schema(Name = "修改日期", Description = "")]
        public DateTime EdtDt { get; set; }


        [Comment("修改人")]
        [Schema(Name = "修改人", Description = "")]
        public string EdtUname { get; set; } = "";


        [Comment("Auths")]
        [Schema(Name = "Auths", Description = "")]
        public List<HtPageAuthDto> Auths { get; set; } = new List<HtPageAuthDto>();

    }
}
